#导包
from rest_framework import serializers
from myupup.models import MyupUser,MyupGoods,MyupIndex,MyupCoupon

class MyupUserSer(serializers.ModelSerializer):
    class Meta:
        model = MyupUser
        fields = '__all__'

class MyupCoodsSer(serializers.ModelSerializer):
    class Meta:
        model = MyupGoods
        fields = '__all__'

class MyupIndexSer(serializers.ModelSerializer):
    class Meta:
        model = MyupIndex
        fields = '__all__'

class MyupCouponSer(serializers.ModelSerializer):
    class Meta:
        model = MyupCoupon
        fields = '__all__'